package com.cw.demo.factory.statics;

import com.cw.demo.factory.Sender;
import com.cw.demo.factory.normal.MailSender;
import com.cw.demo.factory.normal.SmsSender;

/**
 * 静态工厂方法
 *
 * @author chenw
 * @date 2021/1/4
 */
public class StaticFactory {
    public static Sender mailSender(){
        return new MailSender();
    }
    public static Sender smsSender(){
        return new SmsSender();
    }
}
